﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="jquery-1.6.4.min.js" type="text/javascript"></script>

    
</head>
<body>
    <table style="width:50%; height:50%; position:absolute">
        <tr style="width:100%; height:70%;">
            <td >
                <span>spanlink
                </span>
                <div>div</div>
            </td>
        </tr>
        <tr>
            <td >
            <a id="a1" href="#">link</a>
            </td>
        </tr>
    </table>
   
       <script type="text/javascript">
           $(
           function () {
               $("a,span,div").bind("click", function () { alert($(this).text()); });
           }
            );     
            </script>     
</body>
</html>
